package com.health.controller;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-06-23 20:52
 */

import com.health.domain.vo.Result;
import com.health.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/validateCode")
public class CodeController {

    @Autowired
    private CodeService codeService;

    @PostMapping("/send4Login")
    public Result<String> send4Login(String telephone) {
        return codeService.send4Login(telephone);
    }


    @PostMapping("/send4Order")
    public Result<String> send4Order(String telephone) {
        return codeService.send4Order(telephone);
    }

}
